//
//  BaseModel.m
//  House
//
//  Created by 吕品 on 16/5/31.
//  Copyright © 2016年 ZJWL. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel
- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {

}
+ (NSArray *)setValuesAndKeysWithArray:(NSArray<NSDictionary *>*)arr {
    NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *dict in arr) {
        BaseModel *model = [[self alloc] init];
        [model setValuesForKeysWithDictionary:dict];
    }
    return array.copy;
}

@end
